<div>
<h1>文本编辑</h1>
<pre>
<span id="r">r</span>                   <span>替换当前字符</span>
<span id="R">R</span>                   <span>进入替换模式，直至 ESC 离开</span>
<span id="s">s</span>                   <span>替换字符（删除光标处字符，并进入插入模式，前可接数量）</span>
<span id="S">S</span>                   <span>替换行（删除当前行，并进入插入模式，前可接数量）</span>
<span id="cc">cc</span>                  <span>改写当前行（删除当前行并进入插入模式），同 S</span>
<span id="cw">cw</span>                  <span>改写光标开始处的当前单词</span>
<span id="ciw">ciw</span>                 <span>改写光标所处的单词</span>
<span id="caw">caw</span>                 <span>改写光标所处的单词，并且包括前后空格（如果有的话）</span>
<span id="c0">c0</span>                  <span>改写到行首</span>
<span id="c^">c^</span>                  <span>改写到行首（第一个非零字符）</span>
<span id="c$">c$</span>                  <span>改写到行末</span>
<span id="C">C</span>                   <span>改写到行尾（同c$）</span>
<span id='ci"'>ci"</span>                 <span>改写双引号中的内容</span>
<span id="ci'">ci'</span>                 <span>改写单引号中的内容</span>
<span id="cib">cib</span>                 <span>改写小括号中的内容</span>
<span id="cab">cab</span>                 <span>改写小括号中的内容（包含小括号本身）</span>
<span id="ci)">ci)</span>                 <span>改写小括号中的内容</span>
<span id="ci]">ci]</span>                 <span>改写中括号中内容</span>
<span id="ciB">ciB</span>                 <span>改写大括号中内容</span>
<span id="caB">caB</span>                 <span>改写大括号中的内容（包含大括号本身）</span>
<span id="ci}">ci}</span>                 <span>改写大括号中内容</span>
<span id="cit">cit</span>                 <span>改写 xml tag 中的内容</span>
<span id="cis">cis</span>                 <span>改写当前句子</span>
<span id="c2w">c2w</span>                 <span>改写下两个单词</span>
<span id="ct(">ct(</span>                 <span>改写到小括号前</span>
<span id="x">x</span>                   <span>删除当前字符，前面可以接数字，3x代表删除三个字符</span>
<span id="X">X</span>                   <span>向前删除字符</span>
<span id="dd">dd</span>                  <span>删除当前行</span>
<span id="d0">d0</span>                  <span>删除到行首</span>
<span id="d^">d^</span>                  <span>删除到行首（第一个非零字符）</span>
<span id="d$">d$</span>                  <span>删除到行末</span>
<span id="D">D</span>                   <span>删除到行末（同 d$）</span>
<span id="dw">dw</span>                  <span>删除当前单词</span>
<span id="diw">diw</span>                 <span>删除光标所处的单词</span>
<span id="daw">daw</span>                 <span>删除光标所处的单词，并包含前后空格（如果有的话）</span>
<span id='di"'>di"</span>                 <span>删除双引号中的内容</span>
<span id="di'">di'</span>                 <span>删除单引号中的内容</span>
<span id="dib">dib</span>                 <span>删除小括号中的内容</span>
<span id="di)">di)</span>                 <span>删除小括号中的内容</span>
<span id="dab">dab</span>                 <span>删除小括号内的内容（包含小括号本身）</span>
<span id="di]">di]</span>                 <span>删除中括号中内容</span>
<span id="diB">diB</span>                 <span>删除大括号中内容</span>
<span id="di}">di}</span>                 <span>删除大括号中内容</span>
<span id="daB">daB</span>                 <span>删除大括号内的内容（包含大括号本身）</span>
<span id="dit">dit</span>                 <span>删除 xml tag 中的内容</span>
<span id="dis">dis</span>                 <span>删除当前句子</span>
<span id="d2w">d2w</span>                 <span>删除下两个单词</span>
<span id="dt(">dt(</span>                 <span>删除到小括号前</span>
<span id="dgg">dgg</span>                 <span>删除到文件头部</span>
<span id="dG">dG</span>                  <span>删除到文件尾部</span>
<span id="d}">d}</span>                  <span>删除下一段</span>
<span id="d{">d{</span>                  <span>删除上一段</span>
<span id="u">u</span>                   <span>撤销</span>
<span id="U">U</span>                   <span>撤销整行操作</span>
<span id="CTRL-R">CTRL-R</span>              <span>撤销上一次 u 命令</span>
<span id="J">J</span>                   <span>链接多行为一行</span>
<span id=".">.</span>                   <span>重复上一次操作</span>
<span id="~">~</span>                   <span>替换大小写</span>
<span id="g~iw">g~iw</span>                <span>替换当前单词的大小写</span>
<span id="gUiw">gUiw</span>                <span>将单词转成大写</span>
<span id="guiw">guiw</span>                <span>将当前单词转成小写</span>
<span id="guu">guu</span>                 <span>全行转为小写</span>
<span id="gUU">gUU</span>                 <span>全行转为大写</span>
<span id="&lt;&lt;">&lt;&lt;</span>                  <span>减少缩进</span>
<span id="&gt;&gt;">&gt;&gt;</span>                  <span>增加缩进</span>
<span id="==">==</span>                  <span>自动缩进</span>
<span id="CTRL-A">CTRL-A</span>              <span>增加数字</span>
<span id="CTRL-X">CTRL-X</span>              <span>减少数字</span>
</pre>
</div>